package cn.cloudmenu.android;

import java.util.Date;
import java.util.List;

public class MenuCourseBean {
	private Integer id;
	private Integer tagId;
	private String name;
	private Date createTime;
	private Integer menuId;
	private Integer price;
	private Date updateTime;
	private List<String> landscapeImages;
	private List<String> portraitImages;
	
	
	public String getSmallLandscapeImagePath(){
		if(landscapeImages!=null && landscapeImages.size()>0){
			String landscape = landscapeImages.get(0);
			return "/"+menuId+"/"+landscape;
		}else{
			return null;
		}
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Integer getTagId() {
		return tagId;
	}
	public void setTagId(Integer tagId) {
		this.tagId = tagId;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Integer getMenuId() {
		return menuId;
	}
	public void setMenuId(Integer menuId) {
		this.menuId = menuId;
	}
	public Integer getPrice() {
		return price;
	}
	public void setPrice(Integer price) {
		this.price = price;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public List<String> getLandscapeImages() {
		return landscapeImages;
	}
	public void setLandscapeImages(List<String> landscapeImages) {
		this.landscapeImages = landscapeImages;
	}
	public List<String> getPortraitImages() {
		return portraitImages;
	}
	public void setPortraitImages(List<String> portraitImages) {
		this.portraitImages = portraitImages;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MenuCourseBean other = (MenuCourseBean) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
	
}
